package org.feiye.studyday03;

import java.util.Scanner;

public class Grade {

	public static void main(String[] args) {
		// 90优秀 80良好 60中等 其他差（0-100）
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入学员成绩：");
		double grade = sc.nextDouble();
		if (grade >= 90 && grade <= 100) {
			System.out.println("优秀");
		} else if (grade >= 80 && grade < 90) {
			System.out.println("良好");
		} else if (grade >= 60 && grade < 80) {
			System.out.println("中等");
		} else if (grade >= 0 && grade < 60) {
			System.out.println("差");
		} else {
			System.out.println("成绩不合法");
		}
	}

}
